package com.learn.eduorder.feign;

import com.learn.eduapi.entity.CourseActivity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;

@FeignClient("edu-course-boot")
public interface CourseActivityFeignClient {

    @PutMapping("/course-activity/{activityId}")
    ResponseEntity<CourseActivity> reduceActivityStock(@PathVariable("activityId") Long activityId);
}
